package com.ysd.lis.controller;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.WkContentViewTime;
import com.ysd.lis.service.WkContentViewTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 培训知识预览时间统计 前端控制器
 * </p>
 *
 * @author LiuQi
 * @since 2024-03-28
 */
@RestController
@RequestMapping("/wk/contentView/time")
public class WkContentViewTimeController extends BaseController {

    @Autowired
    WkContentViewTimeService wkContentViewTimeService;
    @PostMapping("/addContentViewTime")
    public Result addContentViewTime(@RequestBody WkContentViewTime wkContentViewTime){
        return wkContentViewTimeService.addContentViewTime(wkContentViewTime);
    }
}
